package com.imooc.event;

import org.springframework.context.ApplicationEvent;

public class DemoEvent extends ApplicationEvent {

    private static final long serialVersionUID = -2509895647312902424L;
    private int id;
    private String message;

    public DemoEvent(Object source, int id, String message) {
        super(source);
        this.id = id;
        this.message = message;
    }
}
